package String;

import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-08-27
 * Time: 14:48
 */
public class Test {

    public void merge(int A[], int m, int B[], int n) {
        int i = m-1;
        int j = n-1;
        int k =m+n-1;
        while (k >0){
            if (A[i]>B[j]){
                A[k] = A[i];
                i--;
                k--;
            }else {
                A[k] = B[j];
                j--;
                k--;
            }
            if(i<0){
                A[k] = B[j];
                k--;
                j--;
            }
            if(j<0){
                A[k] = A[i];
                k--;
                i--;
            }
        }
        System.out.println(Arrays.toString(A));

    }
    public static void getString(String str){
        int[] array = new int[255];
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            char ch =str.charAt(i);
            if(array[ch] == 0){
                stringBuilder.append(ch);
                array[ch] = 1;
            }
        }
        System.out.println(stringBuilder.toString());
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()){
            String str = scanner.nextLine();
            getString(str);
        }

    }
}
